package com.cool.dto.response;

import java.io.Serializable;

import lombok.Data;

/**
 * @author yu 2018/11/30.
 */
@Data
public abstract class BaseResult<T> implements Serializable {

    /**
     * 是否成功
     *
     */
    private boolean success = false;

    /**
     * 错误提示(成功succeed)
     */
    private String message;

    /**
     * 处理成功返回的业务数据
     */
    private T data;

    /**
     * 错误代码
     */
    private String code;

}